package com.com.unit2.gram;

public class TEST {

    public static void main(String[] args) {

        System.out.println("--------------------------------");
        // 通过通话服务接口调用通话套餐类的方法
        CallService callservice = new CallPackage();
        callservice.callService(5, new SIMCard(SIMEnum.BIGCARD.getSIMEnum(), 2020,
                "wky", "wf", 18, 10, 200));
        callservice.show();

        System.out.println("--------------------------------");
        // 通过上网服务接口调用上网套餐的方法
        OnlineService onlineservice = new OnlinePackage();
        onlineservice.onlineService(50, new SIMCard(SIMEnum.BIGCARD.getSIMEnum(), 2020,
                "wky", "wf", 10, 5, 200));
        onlineservice.show();

    }
}
